import { useState } from 'react'

export default function StateHook() {
    let [count,setCount] = useState(0)
    return (
        <div>
            <h1>{ count }</h1>
            <button onClick={() => setCount(count + 1)}>count+</button>
        </div>
    )
}